package com.yunxi.sto.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.sto.pojo.StoCarriageRouteListVO;
import com.yunxi.sto.pojo.StoCarriageRouteVO;
import com.yunxi.sto.pojo.StoCarrierListVO;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class StoCarriageRouteDubboServiceMock  implements  StoCarriageRouteDubboService {
    @Override
    public StoCarriageRouteVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        StoCarriageRouteVO vo =  new StoCarriageRouteVO();
        vo.setRouteName("暂无数据");
        return vo;
    }

    @Override
    public void saveOrUpdate(StoCarriageRouteVO stoCarriageRouteVO) throws Exception {

    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public void del(List<String> list, String userId) {

    }

    @Override
    public void reset(List<String> list, String userId) {

    }

    @Override
    public List list() {
        StoCarriageRouteListVO vo  = new StoCarriageRouteListVO();
        List list = new ArrayList();
        list.add(vo);
        return list;
    }

    @Override
    public List carrierList(String routeId, String carriageType) {
        StoCarrierListVO vo =  new StoCarrierListVO();
        List list = new ArrayList();
        list.add(vo);
        return list;
    }

    @Override
    public void approve(List<StoCarriageRouteVO> list, String userId) throws Exception {

    }

    @Override
    public PageInfo<StoCarriageRouteVO> findPageByVO(StoCarriageRouteVO stoCarriageRouteVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException {
        PageInfo<StoCarriageRouteVO> page =  new   PageInfo<StoCarriageRouteVO>();
        List  list  =  new ArrayList();
        StoCarriageRouteVO vo =  new StoCarriageRouteVO();
        vo.setRouteName("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }
}
